<template>
   <div class="t-nav t-nav-new">
        <div class="t-nav-wrap">
            <div class="t-nav-l ">
                <div class="t-nav-logo">
                    <a href="/" title="返回首頁">
                    <img src="/img/home2/rc-logo.png" alt="RC直播">
                </a>
                </div>
            </div>
        </div>
        <div class="t-nav-border"></div>
    </div>
</template>

<script>
import store from "../store/index";
import { sharefacebook, alertDialogCommpent } from "../api/util";
export default {
  data() {
    return {};
  },
  components: {},
  methods: {
    onLogin() {
      RC.login(function() {
        // location.reload();
      });
    },
    onReg() {
      RC.reg();
    },
    onCharge() {
      RaidPay.charge();
    },
    onLogout() {
      RC.logout(function() {
        location.reload();
      });
    },
    onFeedback() {
      RC.feedback();
    }
  },
  mounted: function() {
    var vm = this;
  
  },
  computed: {
    userinfo() {
      return store.getters.userinfo;
    }
  }
};
</script>
<style lang="less" scope>
@import url("~assets/less/_mixins.less");
.t-nav-new.t-nav {
  .t-nav-wrap {
    width: 1350px;
    margin: auto;
    font-size: 20px;
    padding: 12px 0;
  }
  .t-nav-l {
    vertical-align: middle;
    float: left;
    .t-nav-logo {
      float: left;
      margin-right: 20px;
    }
    .t-nav-menu {
      float: left;
      a {
        display: inline-block;
        margin: 0 25px;
        color: @color-font-grey;
        &:hover {
          color: #333;
        }
      }
    }
  }
  .t-nav-r {
    float: right;
    .t-nav-pane {
      color: @color-font-blue;
      .t-nav-stored {
        float: left;
        margin: 5px 12px 0 0;
        .t-nav-charge {
          display: block;
          width: 84px;
          height: 21px;
          background: url("@{img-url}btn-stored.png") no-repeat;
          background-size: 100%;
          &:hover {
            opacity: 0.8;
          }
        }
      }
      .t-nav-login,
      .t-nav-profile {
        float: left;
        a {
          color: @color-font-blue;
          font-size: 16px;
        }
        .nav-item {
          &:after {
            content: "";
            display: inline-block;
            margin-left: 5px;
            width: 1px;
            height: 12px;
            background: @color-font-blue;
          }
        }
      }
      .t-nav-profile {
        display: none;
      }
    }
  }
}
</style>